﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Manager.Model.Admin
{
    /// <summary>
    /// M_Category:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_Category
    {
        public M_Category()
        { }
        #region Model
        private int _typeid;
        private string _typename;
        private string _typecode;
        private string _typedesc;
        private bool _isvalid = true;
        private int? _moduleid;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "栏目类别编号")]
        public int TypeID
        {
            set { _typeid = value; }
            get { return _typeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [Display(Name="栏目类别名称")]
        [StringLength(20)]
        public string TypeName
        {
            set { _typename = value; }
            get { return _typename; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Required]
        [Display(Name = "栏目类别代码")]
        [StringLength(20)]
        public string TypeCode
        {
            set { _typecode = value; }
            get { return _typecode; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "栏目类别描述")]
        [StringLength(100)]
        public string TypeDesc
        {
            set { _typedesc = value; }
            get { return _typedesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "模块")]
        public int? ModuleID
        {
            set { _moduleid = value; }
            get { return _moduleid; }
        }
        #endregion Model

    }
}

